package cell

import (
	"github.com/treelab/updatecolumn/models"
)

// InstanceType of cell
func InstanceType() int32 {
	return models.Checkbox
}

//TODO. ..add modify logic code
func deleteColumnEdges(column models.Column, o models.CommonOptions) {

}

func cellValueToString(cell models.Cell) string {
	if cell.Checked {
		return "checked"
	}
	return ""
}

func cellValueToNumber(cell models.Cell) int {

	if cell.Checked {
		return 1
	}
	return 0
}

func getCellValue(cell models.Cell) bool {
	return cell.Checked
}

func setCellValue(cell *models.Cell, value bool) {
	cell.Checked = value
}

func convertCell() {
	//updateReferenceColumnAndDependencies()

}

func emptyCells() {

}
